/**
 * 
 */
package com.douyu.ocean.recom.platfrom.core.facade.impl;

import javax.annotation.Resource;

import com.alibaba.dubbo.config.annotation.Service;
import com.douyu.ocean.recom.platform.api.model.RuleTemplate;
import com.douyu.ocean.recom.platform.api.result.RecomPlatfromResult;
import com.douyu.ocean.recom.platform.api.service.RecomBizFacade;
import com.douyu.ocean.recom.platfrom.core.service.RuleTemplateService;

/**
 * @author leiruiqi
 *
 */
@Service(interfaceClass=RecomBizFacade.class)
public class RecomBizFacadeImpl implements RecomBizFacade{
	
	@Resource
	private RuleTemplateService ruleTemplateService;

	@Override
	public RecomPlatfromResult<?> getRuleTemplateByBizCode(String recomBizCode) {
		RuleTemplate template =  ruleTemplateService.getRuleTemplateByBiz(recomBizCode);
		
		return RecomPlatfromResult.newSuccess(template);
	}

	

}
